home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / dep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-09  |  2.4 KB  |  72 lines

  1. /* Definitions of dependency data structures for GNU Make.
  2. Copyright (C) 1988, 1989, 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
  3. This file is part of GNU Make.
  4.  
  5. GNU Make is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. GNU Make is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with GNU Make; see the file COPYING.  If not, write to
  17. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. /* Structure representing one dependency of a file.
  20.    Each struct file's `deps' points to a chain of these,
  21.    chained through the `next'.
  22.  
  23.    Note that the first two words of this match a struct nameseq.  */
  24.  
  25. struct dep
  26.   {
  27.     struct dep *next;
  28.     char *name;
  29.     struct file *file;
  30.     int changed;
  31.   };
  32.  
  33.  
  34. /* Structure used in chains of names, for parsing and globbing.  */
  35.  
  36. struct nameseq
  37.   {
  38.     struct nameseq *next;
  39.     char *name;
  40.   };
  41.  
  42.  
  43. extern struct nameseq *multi_glob PARAMS ((struct nameseq *chain, unsigned int size));
  44. #ifdef VMS
  45. extern struct nameseq *parse_file_seq ();
  46. #else
  47. extern struct nameseq *parse_file_seq PARAMS ((char **stringp, int stopchar, unsigned int size, int strip));
  48. #endif
  49. extern char *tilde_expand PARAMS ((char *name));
  50.  
  51. #ifndef NO_ARCHIVES
  52. extern struct nameseq *ar_glob PARAMS ((char *arname, char *member_pattern, unsigned int size));
  53. #endif
  54.  
  55. #ifndef    iAPX286
  56. #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)
  57. #else
  58. /* Buggy compiler can't hack this.  */
  59. extern char *dep_name ();
  60. #endif
  61.  
  62. extern struct dep *read_all_makefiles PARAMS ((char **makefiles));
  63.  
  64. /* Flag bits for the second argument to `read_makefile'.
  65.    These flags are saved in the `changed' field of each
  66.    `struct dep' in the chain returned by `read_all_makefiles'.  */
  67. #define RM_NO_DEFAULT_GOAL    (1 << 0) /* Do not set default goal.  */
  68. #define RM_INCLUDED        (1 << 1) /* Search makefile search path.  */
  69. #define RM_DONTCARE        (1 << 2) /* No error if it doesn't exist.  */
  70. #define RM_NO_TILDE        (1 << 3) /* Don't expand ~ in file name.  */
  71. #define RM_NOFLAG        0
  72.